/**
 * 作者: hxl
 * 日期: 2025-03-14 16:10:18
 * 备注: 限时充值活动配置表
 */
package com.motu.monstercity.server.game.commondata.act;

import io.vertx.core.json.JsonObject;

public class ActRechargeTaskModel {
    protected int id; // id
    protected int taskGroupId; // 分组
    protected int type; // 重置类型
    protected int taskType; // 充值任务类型
    protected int num; // 需要数量
    protected String reward; // 奖励道具

    public ActRechargeTaskModel() {
    }

    public ActRechargeTaskModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        taskGroupId = obj.containsKey("task_group_id") ? obj.getInteger("task_group_id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        taskType = obj.containsKey("task_type") ? obj.getInteger("task_type") : 0;
        num = obj.containsKey("num") ? obj.getInteger("num") : 0;
        reward = obj.containsKey("reward") ? obj.getString("reward") : "";
    }

    public int getId() {
        return id;
    }

    public int getTaskGroupId() {
        return taskGroupId;
    }

    public int getType() {
        return type;
    }

    public int getTaskType() {
        return taskType;
    }

    public int getNum() {
        return num;
    }

    public String getReward() {
        return reward;
    }

}
